package com.ruoyi.api.controller;

import com.ruoyi.api.annotation.Login;
import com.ruoyi.business.app.bo.AppMyCouponBo;
import com.ruoyi.business.app.vo.AppMyCouponVo;
import com.ruoyi.business.service.IHcxUserCouponService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "我的--->我的优惠券相关接口")
@AllArgsConstructor
@RestController
@RequestMapping("/api/coupon")
public class MyCouponController extends BaseController {

    private final IHcxUserCouponService iHcxUserCouponService;


    @ApiOperation("查询我的优惠券列表")
    @GetMapping("/my/list")
    @Login
    public TableDataInfo<AppMyCouponVo> list(AppMyCouponBo bo) {
        return iHcxUserCouponService.queryAppPageList(bo);
    }
}
